Skip to content

Conversation

czarkoff
Copy link
Contributor

Fixes #726. Looks like a980cc9 isn't sufficient. It sorts the commits according to the ordering in history, but then CherryPick ViewModel reverses the order.

This commit changes CherryPick ViewModel to use string.Join on the commit list without reordering, so that the ordering is controlled entirely by the caller.

Fixes sourcegit-scm#726.  Looks like a980cc9 isn't sufficient.  It sorts the commits according to the ordering in history,  but then CherryPick ViewModel reverses the order.

This commit changes CherryPick ViewModel to use string.Join on the commit list without reordering,  so that the ordering is controlled entirely by the caller.
@love-linger love-linger self-assigned this Nov 24, 2024
@love-linger love-linger added the bug Something isn't working label Nov 24, 2024
@love-linger love-linger merged commit 546f628 into sourcegit-scm:develop Nov 24, 2024
13 checks passed
@czarkoff czarkoff deleted the fix-cherry-pick-order branch November 24, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants